package net.bwie.realtime.gongdan.service.impl;

import net.bwie.realtime.gongdan.bean.*;
import net.bwie.realtime.gongdan.mapper.GongDanMapper;
import net.bwie.realtime.gongdan.service.GongDanServince;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: FuHe
 * @Date: 2025/6/13
 */
@Service
public class GongDanServinceImpl implements GongDanServince {
    @Autowired
    GongDanMapper gongDanMapper;

    @Override
    public List<SugarOne> getBabyGenderCount(String date) {
        return gongDanMapper.selectBabyGenderCount(date);
    }

    @Override
    public List<SugarTwo> getBabyAgeCount(String date) {
        return gongDanMapper.selectBabyAgeCount();
    }

    @Override
    public List<SugarOne> getProvinceAgeCount(String date) {
        return gongDanMapper.selectProvinceAgeCount(date);
    }

    @Override
    public List<SugarThree> getBabyAgeGenderCount(String date) {
        return gongDanMapper.selectAgeGenderCount(date);
    }

    @Override
    public List<SugarFive> getProvinceGendersCount(String date) {
        return gongDanMapper.selectProvinceGenderCount(date);
    }
}
